package cn.lngaosu.lwyd.module.integration.job;

import cn.lngaosu.lwyd.framework.quartz.core.handler.JobHandler;
import cn.lngaosu.lwyd.framework.tenant.core.job.TenantJob;
import cn.lngaosu.lwyd.module.integration.service.weixinarticle.WeixinArticleService;
import cn.lngaosu.lwyd.module.integration.service.weixinarticleanalysis.WeixinArticleAnalysisService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class WeixinArticleDayAnalysisJob implements JobHandler {

    @Resource
    private WeixinArticleAnalysisService weixinArticleAnalysisService;

    @Override
    @TenantJob
    public String execute(String param) {
        // 同步图文群发每日数据
        weixinArticleAnalysisService.syncWeixinArticleSummary();
        // 同步图文统计数据
        weixinArticleAnalysisService.syncWeixinArticleUserread();
        // 同步图文分享转发数据
        weixinArticleAnalysisService.syncWeixinArticleUsershare();
        return "每日同步微信图文群发数据、图文统计数据、图文分享转发数据";
    }

}
